package com.wechat.entity;

import com.swak.App;
import com.swak.annotation.Table;
import com.swak.persistence.BaseMapper;
import com.swak.persistence.Model;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * 描述
 * 
 * @author Auto Generator
 * @date 2022-10-21T23:59:27.272484900
 */
@Getter
@Setter
@Accessors(chain = true)
@Table(value = "WECHAT_CONTACT_HEADIMG", useMerge = true)
public class ContactHeadimg extends Model<ContactHeadimg, String> {

	@lombok.EqualsAndHashCode.Exclude
	@lombok.ToString.Exclude
	private static volatile transient BaseMapper<ContactHeadimg, String> _mapper;

	public static final String Id = "ID";
	public static final String SmallHeadimg = "SMALL_HEADIMG";
	public static final String BigHeadimg = "BIG_HEADIMG";
	public static final String CreateDate = "CREATE_DATE";
	public static final String UpdateDate = "UPDATE_DATE";
	public static final String DelFlag = "DEL_FLAG";
	public static final String DelAt = "DEL_AT";

	private String smallHeadimg;
	private String bigHeadimg;

	@Override
	public String prePersist() {
		return this.initDates();
	}

	@Override
	@SuppressWarnings("unchecked")
	protected BaseMapper<ContactHeadimg, String> getSqlRunner() {
		if (_mapper == null) {
			synchronized (ContactHeadimg.class) {
				if (_mapper == null) {
					_mapper = (BaseMapper<ContactHeadimg, String>) App.getBean(getTableDefine().getMapper());
				}
			}
		}
		return _mapper;
	}

	public static ContactHeadimg of() {
		return new ContactHeadimg();
	}
}
